<?php
$opts = array(
  "method'=>'GET",
  "header'=>'Accept-language:en\r\n"."Cookie:foo=bar\r\n"
);

$context = @stream_context_create($opts);

$fp = fopen("http://www.baidu.com",'r',false,$context);
print_r($fp);

fpassthru($fp);
fclose($fp);

